# -*- encoding=utf8 -*-

def GetIP():
    import socket
    
    myname = socket.getfqdn(socket.gethostname())
    myaddr = socket.gethostbyname(myname)
    print 'ip=%s' %myaddr
    return myaddr

if __name__ == '__main__':
    GetIP()
